<table id="results">
<%- @ids.each_with_index do |dic_id,index| -%>
	<tr><td><h3>Entry: <span id='<%= dic_id -%>'></span></h3></td></tr>
	<%- @sense_size[index].times do |sense| -%>
		<tr><td onClick="<%= "Element.toggle('#{dic_id}_#{sense}_example')" -%>" ><h3><%= sense + 1 -%>. <span id='<%= "#{dic_id}_#{sense}" -%>'></span></h3></td></tr>
		<tr><td id='<%= "#{dic_id}_#{sense}_example" %>'>
		<%- @reibun[dic_id][sense].each do |example| -%>
			<%- example["data"].each_with_index do |word,position| -%>
				<%- if position != example["position"] -%>
					<span title='<%= word["reading"] %>' >
						<%= word["surface"] %>
					</span>
				<%- else -%>
					<span title='<%= word["reading"] %>' >
						<font color='red'><%= word["surface"] %></font>
					</span>
				<%- end -%>
			<%- end -%>
			<br><br>
		<%- end -%>
		</td></tr>
		<tr><td><%= "- no example -" if @reibun[dic_id][sense].empty? -%></td></tr>
	<%- end -%>
	<tr><td onClick="<%= "Element.toggle('#{dic_id}_unclassify_example')" -%>" ><h3><%= "[unclassify]" -%></h3></td></tr>
	<tr><td id='<%= "#{dic_id}_unclassify_example" %>'>
	<%- @reibun[dic_id]["unclassify"].each do |example| -%>
		<%- example["data"].each_with_index do |word,position| -%>
			<%- if position != example["position"] -%>
				<span title='<%= word["reading"] %>' >
					<%= word["surface"] %>
				</span>
			<%- else -%>
				<span title='<%= word["reading"] %>' >
					<font color='red'><%= word["surface"] %></font>
				</span>
			<%- end -%>
		<%- end -%>
		<br><br>
	<%- end -%>
	</td></tr>
	<tr><td><%= "- no example -" if @reibun[dic_id]["unclassify"].empty? -%></td></tr>
<%- end -%>
</table>